<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // js常用数据类型
        // 基本数据类型
        let a = 1     //数字类型 Nnmber   123456789  0.1
        let b = "张三" // 字符串类型 String     带引号的都是字符    let b1 = "123456"
        let c = true   // 布尔类型  Boolean     (ture/false)真或者假

        let d = undefined    //undefined   声明了但没赋值
        let e = null         // null    空类型
        let f = Symbol       //   唯一的   
        let g = BigInt       // 最大安全数  
        
        
        // 引用数据类型

        let h = {}        //object  对象
        let i = []       //Array数组
        let j = function(){}  //function函数



        // 栈
        let name = "张三"

        let name2 = name

        name = "李四"

        console.log(name);
        console.log(name2);
        
        // 堆  实际上代表的是内存指针位置

        let obj = {
            name: '王五'
        }

        let obj2 =obj

        obj.name = "赵六"

        console.log(obj);

        console.log(obj2);
    </script>
</body>
</html>